# -*- coding: utf-8 -*-
# @Time    : 2021/9/15 19:12
# @Author  : BrandonGT
# @FileName: 9_13_dice.py

from random import randint


class Die:
    def __init__(self, sides=6):
        self.sides = sides

    def roll_dice(self):
        num = randint(1, self.sides)
        print(f"Random Number from {self.sides}-sides Dice: {num}")

    def set_sides(self, sides):
        self.sides = sides


dice_10 = Die(10)
dice_20 = Die(20)

for i in range(10):
    dice_10.roll_dice()
    dice_20.roll_dice()
